Candles
Candles data refers to the open, high, low, and close prices of a cryptocurrency over a specific time period. Candlesticks are a type of chart that is commonly used by traders to analyze the price movement of a cryptocurrency. Each candlestick represents a specific time interval, such as 1 minute, 5 minutes, 1 hour, or 1 day, and provides valuable information about the price action during that time frame.
The CoinDCX API provides candlestick data for all cryptocurrencies traded on their platform. This data is commonly used by traders to identify trends, patterns, and trading opportunities in the market.
To extract Candles data using the CoinDCX API, use the following endpoint:
https://public.coindcx.com/market_data/candles/?pair=B-BTC_USDT&interval=1m
You can pass the following parameters along with the Candles endpoint to define
| Parameter | Required | Description |
|---|---|---|
| pair | Yes | It is a string created by ecode, target_currency_short_name, and base_currency_short name. For example, B-BTC_USDT. |
| interval | Yes | The value can be any of the valid intervals. Acceptable values are:
|
| startTime | No | Start time for the candle in ms. For example, 1562855417000 |
| endTime | No | End time for the candle in ms. For example, 1562855417000 |
| limit | No | Indicates the limit of the candle.The maximum value for this parameter is 1000. |
If a limit is not defined, 500 will be defined as default.
This endpoint will return the following response parameters,
| Parameter | Description |
|---|---|
| open | Indicates the opening price. |
| high | Highest price during the mentioned interval. |
| low | Lowest price during the mentioned interval. |
| volume | Indicates the total volume in terms of target currency. For example, B-BTC_USDT will have it’s volume represented with BTC. |
| close | Indicates the close price. |
| time | The time at which the candle opens in ms. |